home *** CD-ROM | disk | FTP | other *** search
- This directory contains a copy of the official source distribution of version
- 1.10 of the GNU roff text formatting package. Amiga-specific files and
- patches are in directory AMIGA_FILES.
-
- To install:
- If you have autoconf, type:
- autoconf
- configure --prefix=/gnu
- (The --prefix option appears to be required, at least on my amiga).
-
- If you don't have autoconf, or do not feel like waiting for configure to
- finish (it takes quite a while), copy AMIGA_FILES/Makefile to Makefile.
-
- Either way, edit the top level Makefile (look at AMIGA_FILES/Makefile for
- examples):
-
- * Adjust the CCFLAGS, CFLAGS, and LDFLAGS for your CPU and FPU (or lack
- thereof).
- * If you specify -m68881, also specify -U__HAVE_68881__, to disable
- the inclusion of <math-68881.h>. Groff expects "C" style math functions,
- but when <math-68881.h> is included, they are defined as "C++" style
- functions, resulting in confusion.
- * Make sure that you have added -Dfork=vfork in CFLAGS.
- * Look for a line beginning "g=". In previous versions of groff, programs like
- troff, eqn, etc., having the same name as equivalent UNIX programs, were
- installed with a "g" prefix, i.e., gtroff, geqn, etc. In this version, this
- renaming is not done if the equivalent UNIX program, is not installed. If you
- want the old behavior, change this line to: "g=g". I already did this in the
- provided Makefile, as it helps prevent confusion from having both troff
- (1.10) and gtroff (1.09) if you forget to clean up.
-
- At this point, we are not quite ready to compile, but if you have a version
- of gcc later than 2.7.0, which is the one I used, I would suggest trying
- anyway. Type:
- make
-
- If you get errors about various string functions being defined
- differently in <string.h> and <std/cstring.h>, apply the patches in
- AMIGA_FILES/cstring.diff to GNU:lib/g++-include/std/cstring.h.
-
- If you get errors about ambiguous use of the memchr() function, apply the
- patches in AMIGA_FILES/diffs, to patch libgroff/string.cc, libbib/linear.cc,
- and refer/ref.cc, which add a cast to (void *) to the first argument of
- memchr().
-
- Both errors should appear fairly early (libgroff is the first directory to
- be compiled), so you shouldn't have long to wait to find if you need any of
- the patches.
-
- Once you get libgroff to compile, go for a long walk.
-
- When you come back, type "make install" to install everything.
- If you want, copy AMIGA_FILES/tmac.*a4 to gnu:share/groff/tmac.
-
- For various hints (including what these two files are), please read
- README_AMIGA_BIN, the readme file from the binary distribution.
- --
- Kriton (UUCP: pythia!theseas!kriton!kyrimis)
- (INTERNET: kyrimis@theseas.softlab.ece.ntua.gr)
- (WWW: http://www.hpcl.cti.gr/~kyrimis
-